<template>
    <div class="item" :class="{'item-unactive': loginStore.isLoggedIn === false}">
      <div class="head">
        <div class="title">{{ title }}</div>
        <div class="icon">
            <img :src="icon" alt="图片">
        </div>
      </div>
      <div class="content">
        <div class="nums">{{ nums }}</div>
        <div class="picture"></div>
      </div>
    </div>
</template>

<script setup lang="ts">
import { useLoginStore } from '@/stores/login';
const loginStore = useLoginStore()
const { title,nums,icon } = defineProps(['title','nums','icon'])
</script>

<style scoped lang="less">
@import url('@/views/personal/components/items/index.less');
</style>